import React from "react";
import { FigureCompProps } from "../types";
import { Image } from "antd";

const FigComp: React.FC<FigureCompProps | undefined> = (
  props?: FigureCompProps,
) => {
  return (
    <>
      <h2>{props?.figTitle}</h2>
      <div>
        <Image src={props?.figSrc}></Image>
        <h3>{props?.message}</h3>
      </div>
    </>
  );
};

export default FigComp;
